/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jdbcpojos;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @todo
 * @author piotrek
 */
public class Purchase {

	private int idPurchase;
	private Customer customer;
	private double cost;
	private Date purchaseDate;
	private List<PurchaseDetail> purchaseDetails = new ArrayList<PurchaseDetail>(0);

	public Purchase(){

	}

	/**
	 * @return the idPurchase
	 */ public int getIdPurchase() {
		return idPurchase;
	}

	/**
	 * @param idPurchase the idPurchase to set
	 */ public void setIdPurchase(int idPurchase) {
		this.idPurchase = idPurchase;
	}

	/**
	 * @return the customer
	 */ public Customer getCustomer() {
		return customer;
	}

	/**
	 * @param customer the customer to set
	 */ public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	/**
	 * @return the cost
	 */ public double getCost() {
		return cost;
	}

	/**
	 * @param cost the cost to set
	 */ public void setCost(double cost) {
		this.cost = cost;
	}

	/**
	 * @return the purchaseDate
	 */ public Date getPurchaseDate() {
		return purchaseDate;
	}

	/**
	 * @param purchaseDate the purchaseDate to set
	 */ public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}

	/**
	 * @return the purchaseDetails
	 */ public List<PurchaseDetail> getPurchaseDetails() {
		return purchaseDetails;
	}

	/**
	 * @param purchaseDetails the purchaseDetails to set
	 */ public void setPurchaseDetails(List<PurchaseDetail> purchaseDetails) {
		this.purchaseDetails = purchaseDetails;
	}

}
